﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using Sharp.Infrastructure;
using Sharp.Platform.Interface;
using Sharp.Platform.Mvc.Models;

namespace Sharp.WebBooter.Areas.Platform.Models
{
    public partial class MessageModel : BaseViewModel, IViewModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [HiddenInput]
        public Guid Id { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        [Display(Name = "内容", Order = 2), DataType(DataType.MultilineText)]
        public string Content { get; set; }
        /// <summary>
        /// 收件人
        /// </summary>
        [Display(Name = "收件人", Order = 1)]
        public string RecipientName { get; set; }
    }

    public partial class MessageModel : ISharpForm
    {
        public MessageModel()
        {
            UI = new SharpFromUI();
            this.UI.Width = 700;
        }
        public SharpFromUI UI { get; set; }
    }
}
